<?php

namespace app\admin\validate;

use think\Validate;

class Category extends Validate
{
    protected $rule = [
        'name' => 'require',
        'pid' => 'require',
    ];

    protected $message = [
        'name.require' => '分类名必须填写',
        'pid.require' => '父类ID必须填写',
    ];

}